import fw from '../core/framework.js'
Component({
  data: {
    selected: 0,
    "color": "#8B9DB9",
    "selectedColor": "#3885EA",
    "list": [
      {
        "pagePath": "terminal_list",
        "text": "设备",
        "iconPath": "../images/terminal.png",
        "selectedIconPath": "../images/terminal_fill.png"
      },
      {
        "pagePath": "mineV1",
        "text": "我的",
        "iconPath": "../images/mine.png",
        "selectedIconPath": "../images/mine_fill.png"
      }
    ]
  },
  attached() {
  },
  methods: {
    switchTab(e) {
      const data = e.currentTarget.dataset;
      console.log('data.path',data.path)
      fw.url.switchTab(data.path);

      this.setData({
        selected: data.index
      })
    }
  }
})